package com.learning.spark.scala.sql.implicitly

/**
  * ClassName: ImplicitlyArgs
  * Description: 隐式参数
  * Date: 2018/7/2 15:48 【需求编号】
  *
  * @author Sam Sho
  * @version V1.0.0
  */
object ImplicitlyArgs {

  def signForExam(name: String) = {
    val signPen = new SignPen()
    signPen.write(name)
  }

  def signForRe(name: String) = {
    val signPen = new SignPen()
    signPen.write(name)
  }

  def main(args: Array[String]): Unit = {
    signForExam("Sam");
  }

}

class SignPen() {
  def write(name: String) = println(name)
}
